<!--
 * @Description: 
 * @Author: charles
 * @Date: 2020-11-03 14:05:02
 * @LastEditors: charles
 * @LastEditTime: 2021-08-01 14:07:59
-->
<template>
  <div>
    <div>{{articeDate.title}}</div>
    <div v-html="articeDate.content"></div>
  </div>
</template>

<script>
import {get} from "../utils/request";

export default {
  data() {
    return {
      articeDate:[]
    }
  },
  created() {
    this.getArticeId()
  },
  methods: {
    getArticeId() {
      get('/index/article/findById',{id:this.$route.query.id}).then(res => {
        if (res && res.data && res.status===200) {
          this.articeDate = res.data
        }
      })
    }
  }
}
</script>